package com.hb.trans.global

import com.hb.trans.bean.Student

class DataStore private constructor() {

    private var stu: Student? = null

    object Holder {
        val instance = DataStore()
    }

    companion object {
        fun getInstance(): DataStore {
            return Holder.instance
        }
    }

    fun saveStudentInfo(stu: Student) {
        this.stu = stu
    }

    fun getStudentInfo(): Student? {
        return stu
    }

}